import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/prowler' };
export default {
  path: '/prowler',
  meta: {
    ...meta,
    icon: 'setting',
    title: '潜客管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/prowlerinfosearch`,
      component: _import('prowler/prowlerinfosearch'),
      name:'prowlerinfosearch',
      meta: {
        ...meta,
        title: '潜客查询',
      },
    },
    {
      path: `${basePath}/prowlermanage`,
      component: _import('prowler/prowlermanage'),
      name:'prowlermanage',
      meta: {
        ...meta,
        title: '机构潜客管理',
      },
    },
    // 机构潜客管理-潜客回收确认页面

    {
      path: `${basePath}/prowlermanage/recycle/recycleConfirm`,
      component: _import('prowler/prowlermanage/recycle/recycle-confirm'),
      name:'recycle-confirm',
      meta: {
        ...meta,
        title:'潜客收回确认页',
        highlightTo: `${basePath}/prowlermanage`,
      },
    },
   // 机构潜客管理-潜客回收确认页面
    {
      path: `${basePath}/prowlermanage/recycle/recycleResult`,
      component: _import('prowler/prowlermanage/recycle/recycle-result'),
      name:'recycle-result',
      meta: {
        ...meta,
        title:'潜客收回结果页',
        highlightTo: `${basePath}/prowlermanage`,
      },
    },

      // 机构潜客管理-潜客调配录入页面
      {
        path: `${basePath}/prowlermanage/deploy/deployEnter`,
        component: _import('prowler/prowlermanage/deploy/deploy-enter'),
        name:'deploy-enter',
        meta: {
          ...meta,
          title:'潜客调配录入页面',
          highlightTo: `${basePath}/prowlermanage`,
        },
      },

       // 机构潜客管理-潜客调配确认页面
       {
        path: `${basePath}/prowlermanage/deploy/deployConfirm`,
        component: _import('prowler/prowlermanage/deploy/deploy-confirm'),
        name:'deploy-confirm',
        meta: {
          ...meta,
          title:'潜客调配录入确认',
          highlightTo: `${basePath}/prowlermanage`,
        },
      },

    {
      path: `${basePath}/accountmanager`,
      component: _import('prowler/accountmanager'),
      name:'accountmanager',
      meta: {
        ...meta,
        title: '客户经理潜客管理',
      },
    },
    

  
    //用户管理-新增 end

  ])('/prowler'),
};
